<script setup lang="ts">
import { computed, ref, watch } from 'vue';

import type { VxeGridInstance, VxeGridProps } from 'vxe-table';

interface Props {}

const props = withDefaults(defineProps<Props>(), {});

// 表格实例
const gridRef = ref<VxeGridInstance>();

// 导出方法
defineExpose({
	gridRef,
});
</script>

<template>
	<vxe-grid ref="gridRef" border round size="small" :auto-resize="true" v-bind="$attrs">
		<template v-for="(slot, name) in $slots" #[name]="scope">
			<slot :name="name" v-bind="scope" />
		</template>
	</vxe-grid>
</template>

<style scoped></style>
